import request from "./request"

// 登录
export const loginApi = (data) => request.post("/admin/auth/login/Login", data)
// 根据token获取用户登录信息
export const getUserByTokenApi = (data) => request.post("/admin/auth/getUserByToken", data)
// 获取商品列表
export const GetGoodApi = (params) => request.get("/admin/goods", { params })
// 获取商品属性列表
export const GetAttributeApi = (params) => request.get("/admin/attribute", { params })
// 获取品牌管理页面
export const GetBrandApi = (params) => request.get("/admin/brand", { params })
// 获取商品分类页面
export const GetCategoryApi = (params) => request.get("/admin/category", { params })
// 上传图片???!!!
export const UploadGoodPicApi = (data) => request.post("/admin/upload/goodNewPic", data)
// 编辑添加页面上传图片的api  新增编辑品牌详情
export const UploadAddbrandNewPicApi = (data) => request.post("/admin/upload/goodNewPic", data)
// 编辑添加页面 新增编辑品牌详情
export const UploadAddbrandPicApi = (data) => request.post("/admin/brand/store", data)
// 编辑添加页面 新增编辑属性
export const UploadAddAttributePicApi = (data) => request.post("/admin/attribute/store", data)
